]> dgit.raspbian.org Git - gnome-shell.git/commit
gdm/authPrompt: Fix key focus handling on choice list
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 22 Aug 2025 13:08:23 +0000 (15:08 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 24 Sep 2025 17:32:01 +0000 (17:32 +0000)
commitc90d2d7bd22b4430834102732f2deb59a8bb8ab3
tree0960c21b491103e5f156d1bc209d1eca05c68276
parente54aa588c1604b63e2f051e20c1ecb3e601beb5c
gdm/authPrompt: Fix key focus handling on choice list

When a choice list widget is prompted in GDM we call updateSensitivity()
but this does not act on the currently visible authentication widget but
rather on the text entry all the times.

And this causes that when a choice list is shown we always set the key
focus to the (hidden) text entry.

This implies that when the list is finally shown, moving the arrow keys
leads makes the entry context menu to be shown instead of being able to
navigate through the entries.

So, make updateSensitivity use the currently visible authorization
widget instead and use it to control the sensitivity of the choice list

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3849>
js/gdm/authPrompt.js